Skip to content

Conversation

@eligotts
Copy link
Contributor

@eligotts eligotts commented Jan 21, 2026

Description

Previously, there would be an extra model call even after the model set answer="Ready"

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Additional Notes


Note

Optimizes the RLM environment to stop immediately once the answer is ready, avoiding an extra LLM call.

  • Adds env_response override to set state["final_env_response"] when final_answer exists, ensuring the final tool messages are captured and halting further calls
  • No other behavioral changes; existing stop conditions and rendering logic remain intact

Written by Cursor Bugbot for commit 4a47b84. This will update automatically on new commits. Configure here.

@CLAassistant
Copy link

CLAassistant commented Jan 21, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@snimu snimu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great with both Bash and Python, just needs a small fix to be fully correct

@snimu snimu merged commit 6c6c139 into PrimeIntellect-ai:main Jan 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants